// antd 主题样式覆盖
.ant-btn {
  &:hover {
    color: var(--mainColor);
    border-color: var(--mainColor);
  }
}
.ant-btn-primary {
  background-color: var(--mainColor);
  border-color: var(--mainColor);
  &:hover {
    background-color: var(--mainActiveColor);
    color: white;
  }
}
.ant-input-search .ant-input:hover,
.ant-input-search .ant-input:focus {
  border-color: var(--mainColor);
}
.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
  border-color: var(--mainColor);
}
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
  border-color: var(--mainActiveColor);
  box-shadow: none;
}
.ant-picker-input > input:hover {
  border-color: var(--mainColor);
}
.ant-input:hover,
.ant-input-number:hover {
  border-color: var(--mainColor);
}
.ant-input:focus,
.ant-input-focused,
.ant-input-number-focused {
  border-color: var(--mainColor);
  box-shadow: 0 0 0 2px var(--mainActiveColor);
}
.ant-radio-group-solid
  .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  background: var(--mainColor);
  border-color: var(--mainColor);
  &:hover {
    background: var(--mainActiveColor);
    border-color: var(--mainActiveColor);
  }
  &::before {
    background-color: var(--mainColor);
  }
}
.ant-radio-button-wrapper-checked {
  z-index: 0 !important;
}
.ant-radio-button-wrapper:hover {
  color: var(--mainColor);
}
.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
  border-right-color: var(--mainActiveColor);
}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  color: var(--mainColor);
  &:hover {
    color: var(--mainActiveColor);
  }
}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {
  border-color: var(--mainColor);
}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  border-color: var(--mainColor);
}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
  background-color: var(--mainColor);
}
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
  background: var(--mainColor);
}
.ant-picker:hover,
.ant-picker-focused {
  border-color: var(--mainColor);
}
.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
  border-color: var(--mainColor);
}
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
  background-color: var(--mainColor);
}
.ant-picker-range .ant-picker-active-bar {
  background-color: var(--mainColor);
}
.ant-switch {
  border-radius: var(--radius);
}
.ant-switch-checked {
  background-color: var(--mainColor);
}
.ant-switch-handle::before {
  border-radius: var(--radius);
}